package pl.pkolodziej.platform.dao.user;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import pl.pkolodziej.platform.vo.user.Authority;

@Repository
public class AuthorityDAOImpl implements AuthorityDAO {

	@Autowired
	public SessionFactory sessionFactory;
	
	public void addAuthority(Authority authority) {
		sessionFactory.getCurrentSession().save(authority);

	}

}
